<{include file="_head.html"}>
<script type="text/javascript" src="js/jquery.fancybox-1.3.4.js"></script>
<link rel="stylesheet" type="text/css" href="css/jquery.fancybox-1.3.4.css" media="screen" />
<{include file="head.html"}>
<script type="text/javascript">
//获得城市，地区
function getArea(type,father,child,county,circle){
  var fatherid=father.val();
  $.post(
    'ajax.php?action=getArea',
    {type:type,fatherid:fatherid},
    function(data){
      if(county!=''){
        if(data.error=='0' && type=='city'){
          county.html('<option value="">请选择</option>');
          circle.html('<option value="">请选择</option>');
        }
        if(data.error!='0'){
          county.html('<option value="">请选择</option>');
          circle.html('<option value="">请选择</option>');
        }

      }
      child.html(data.child);
    },'json'
  )
}

$(function(){
  //搜索筛选
  $(".text_kscx").keyup(function(){
     var text=$(this).val();
     var class_id='<{$class_id}>';
        $.post(
            'service_list.php?action=searchClass',
            {text:text,class_id:class_id},
            function(data){
              $(".sel_kscx").html(data.select);
        },'json')  
  })

//提交表单
$(".tj").click(function(){
  $("#myform").submit();

})

  //弹出框
  $(".various1").fancybox({
    'titlePosition':'inside',
    'transitionIn':'none',
    'transitionOut':'none'
  });

  //提交申请
  $("#myForm").submit(function(){
    return queding('确定提交申请？',".subCheck");
  })

})
</script>
<div class="zsfw_menu">
<{if $getSearch.title==''}>
<a <{if $smarty.get.class_id==''}>class="active"<{/if}> href="service_list.php">全部</a>&nbsp;&nbsp;|
<{foreach item=loop key=key from=$serviceClass}>
<!-- <a href="#" id="zsfw_menu_lb">子时伙伴</a>|<a href="#">政策解读</a> -->
 <a href="service_list.php?class_id=<{$loop.id}>" class="service <{if $smarty.get.class_id==$loop.id}>active<{/if}>"><{if $key!='0'}>| &nbsp;&nbsp;<{/if}><{$loop.class_name}></a>
<{/foreach}>
<{else}>
    <span class="span_weizhi">首页  >  搜索 > <{$getSearch.title}>   相关信息</span>
<{/if}>
</div>
<form action="" method="post" id="myform">
<div class="kscx">
<table width="1050" height="69" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="110" align="right"><p>快速查询</p></td>
    <td width="353"><input type="text" class="text_kscx" placeholder="输入搜索内容..."  name="name" value="" /></td>
    <td width="348">
<select class="sel_kscx" name="class_id">
<option value ="">请选择</option>
<{foreach item=loop  from=$nextClass}>
<option value ="<{$loop.id}>" <{if $search.class_id==$loop.id}>selected<{/if}>><{$loop.class_name}></option>
<{/foreach}>
</select>
    </td>
    <td width="239"><a href="javascript:;" class="tj"><img src="images/search_btn.jpg" width="214" height="46" /></a></td>
  </tr>
</table>
</div>
</form>

<div class="main_zsfwlb">
<!-- left -->
<div class="main_zsfwlb_left">
<span class="span_bq">最新加入</span>
<div class="main_zsfwlb_left_nr">
<ul class="ul_zsfwlb_left_nr">
<!-- <li><a href="#"><img src="images/zxjr_img.jpg" width="300" height="196" /><span>标题</span></a></li>
<li><a href="#"><img src="images/zxjr_img.jpg" width="300" height="196" /><span>标题</span></a></li>
<li><a href="#"><img src="images/zxjr_img.jpg" width="300" height="196" /><span>标题</span></a></li> -->
<{foreach item=loop from=$new}>
<li><a href="service_info.php?id=<{$loop.id}>"><img src="upload/service/small/<{$loop.logo}>" width="300" height="196" /><span><{$loop.title}></span></a></li>
<{/foreach}>
</ul>
<!-- <a href="#" class="a_more_zsfwlb" style="text-align:right;">more&gt;&gt;</a> -->
<a href="#inline1" class="a_wztg various1">申请加入&gt;&gt;</a>
</div>
</div>
<!-- left -->

<!-- right -->
<div class="main_zsfwlb_right">
<div style="height:35px;"></div>
<!-- 1 -->

<{foreach item=loop from=$row}>
<div class="main_left_1">
<div class="main_left_1_img">
<a href="service_info.php?id=<{$loop.id}>"><img src="upload/service/small/<{$loop.logo}>" width="255" height="167" /></a>
</div>
<div class="main_left_1_right">
<a href="service_info.php?id=<{$loop.id}>" class="a_main_left_1_right"><{$loop.title}></a>
<p><{$loop.intro|truncate:120}></p>
<a href="service_info.php?id=<{$loop.id}>" class="a_more">more&gt;&gt;</a>
<div class="clear"></div>
<div class="main_left_1_btm">
<ul class="ul_zfwlby_r">
<li style="margin-right:12px;"><p>地点：<b><{$loop.provinceName}></b></p></li>
<li style="margin-right:45px;"><span><{$loop.cityName}></span></li>
<li><samp>类型：<{$loop.className}></samp></li>
</ul>
<ul class="ul_zx_tb">
<li><span><{$loop.click_num}>人</span></li>
</ul>
</div>
</div>
</div>
<{/foreach}>
<!-- 1 -->
<div class="clear"></div>
<div class="page">
<ul class="ul_page">
<!-- <li><a href="#">上一页</a></li>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">下一页</a></li> -->
<{$page}>
</ul>
</div>

</div>
<!-- right -->
</div>

<!-- tanchu -->
<div class="join_zs" style="display:none;">
 <div id="inline1" style="width:700px;height:585px;overflow:auto;">
  <a href="service_list.php?class_id=<{$smarty.get.class_id}>"><img src="images/close.jpg" width="28" height="28" style="display:block; float:right;" /></a>
  <div class="clear"></div>
  <span class="span_join_bt">加入子时</span>
  <div class="join_zs_nr">
  <form action="" method="post" name="myForm" id="myForm" enctype='multipart/form-data'>
  <table width="496" height="408" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="109" align="center"><p class="p1_join_zs">公司LOGO</p></td>
      <td width="387"><a href="javascript:;" onClick="$('[name=logo]').click();" class="a_join_zs">+</a>
          <input type="file" name="logo" style="display:none" > 
      </td>
    </tr>
    <tr>
      <td align="center"><p class="p1_join_zs">公司名称</p></td>
      <td><input type="text" name="title" class="text_join_zs subCheck" /></td>
    </tr>
    <tr>
      <td align="center"><p class="p1_join_zs">公司介绍</p></td>
      <td><input type="text" name="intro"  class="text_join_zs subCheck" /></td>
    </tr>
     <tr>
      <td align="center"><p class="p1_join_zs">地&nbsp;&nbsp;&nbsp;&nbsp;址</p></td>
      <td><select class="text_join_zs subCheck" style="width:130px;" name="province" onchange="getArea('city',$('select:[name=province]'),$('select:[name=city]'),$('select:[name=county]'),$('select:[name=circle]'))">
          <option value="">选择省</option>
          <{foreach item=loop from=$province}>
          <option value="<{$loop.provinceid}>"  <{$loop.selected}>><{$loop.province}></option>
          <{/foreach}>
         </select>
         <select style="width:110px;" class="text_join_zs subCheck" name="city" onChange="getArea('county',$('select:[name=city]'),$('select:[name=county]'),$('select:[name=circle]'))">
          <option value="">选择市</option>
         </select>
         <select class="text_join_zs" style="width:110px; subCheck" name="county" onChange="getArea('circle',$('select:[name=county]'),$('select:[name=circle]'),$('select:[name=circle]'))">
          <option value="">选择区</option>
         </select>
        <!--  <input name="" type="text" class="text_join_zs" /> -->
      </td>
    </tr>
    <tr>
      <td align="center"><p class="p1_join_zs">详细地址</p></td>
      <td>
         <input type="text" name="address" class="text_join_zs subCheck" />
      </td>
    </tr>
    <tr>
      <td align="center"><p class="p1_join_zs">联系人</p></td>
      <td>
  <table width="387" height="46" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="175"><input type="text" name="linkman" class="text_join_zs1 subCheck" /></td>
      <td width="40"><p class="p1_join_zs">电话</p></td>
      <td width="172"><input  type="text" name="phone" class="text_join_zs1" /></td>
    </tr>
  </table>
      </td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><span class="span_join_1">便于及时联系到您，请输入手机号</span></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><p class="p2_join_zs"><input class="subCheck" name="prtocol" type="checkbox" value="1" />&nbsp;商家入驻协议</p></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input name="submit" type="submit" value="申请入驻" class="btn_sqrz" /></td>
    </tr>
  </table>
  </form>
  </div>
  </div>
</div>
<!-- tanchu -->

<{include file="footer.html"}>
